package com.ccc.boot.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
* 角色资源中间表
*
* @author superC
* @date 2022-03-31
* @version 0.1.0
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rel_role_resource")
public class RelRoleResource implements Serializable {

    private static final long serialVersionUID = 3269960053178411017L;

    /**
    * 用户ID(主键)
    */
    @TableId
    private Long roleId;

    /**
     * 资源类型(1:菜单 2:API)
     */
    @TableId
    private Integer resourceType;

    /**
    * 资源ID(主键)
    */
    @TableId
    private Long resourceId;

}